<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$seo.title}</title>
  <meta name="keywords" content="{$seo.keywords}" />
  <meta name="description" content="{$seo.description}" /> <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

  <!-- Font Awesome -->
  <link href="{YUNYECMS_PUBLIC}plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" />
  <!-- Font Awesome -->
  <link rel="stylesheet" href="{YUNYECMS_UI}plugins/fontawesome-free/css/all.min.css">
  <link rel="stylesheet" href="{YUNYECMS_UI}plugins/iCheck/all.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="{YUNYECMS_UI}dist/css/AdminLTE.min.css">
  <script src="{YUNYECMS_UI}mui/js/mui.min.js"></script>
  <link href="{YUNYECMS_UI}mui/css/mui.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="{YUNYECMS_UI}dist/css/common.css">
  <link rel="stylesheet" href="{YUNYECMS_UI}dist/css/member.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="{YUNYECMS_UI}plugins/iCheck/square/blue.css">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body class="hold-transition register-page" style="background: #ffffff;">
  <div class="register-box" style="background: #ffffff; padding-top: 0px; padding-bottom: 0px;">
    <div class="register-logo" style=" padding-bottom: 10px;">
      <a href="{ROOT}"><b><img src="{$lang.logo}" style="width: 50%;"></b></a>
    </div>
    <div class="register-box-body">
      <div class="reg-tabs yunye_tab">
        <div id="sign_type" class="mui-segmented-control mui-segmented-control mui-segmented-control-inverted mb-15">
          <span class="mui-control-item mui-active">
            手机
          </span>
          <span class="mui-control-item">
            邮箱
          </span>
        </div>
        <div>
          <form name=userinfoform class="form-horizontal" method="post" action="">
            <div class="form-group" id="reg_phone_box">
              <div class="input-group  input-group-lg btn-flat">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="icon-screen-smartphone"></i></span>
                </div>
                <input type="text" name="reg_phone" class="form-control btn-flat" id="reg_phone"
                  onfocus="ThisOnfocus('reg_phone')" maxlength="11" onblur="ThisOnblur('reg_phone')"
                  onkeyup="ThisOnkeyup('reg_phone')" vdata="0" placeholder="手机号码">
              </div>
              <div class="col-sm-12">
                <span class="text-red" id="reg_phone_mes"></span>
              </div>
            </div>
            <div class="form-group" id="reg_email_box">
              <div class="input-group  input-group-lg btn-flat">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="icon-envelope-letter"></i></span>
                </div>
                <input type="text" name="reg_email" class="form-control btn-flat" id="reg_email"
                  onfocus="ThisOnfocus('reg_email')" onblur="ThisOnblur('reg_email')" onkeyup="ThisOnkeyup('reg_email')"
                  vdata="0" placeholder="请输入邮箱">
              </div>
              <div class="col-sm-12">
                <span class="text-red" id="reg_email_mes"></span>
              </div>
            </div>
            <div class="form-group" id="reg_yzm_box">
              <div class="input-group input-group-lg ">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="fa fa-qrcode"></i></span>
                </div>
                <input type="text" class="form-control" name="reg_yzm" id="reg_yzm" vdata="0"
                  onfocus="ThisOnfocus('reg_yzm')" onblur="ThisOnblur('reg_yzm')" placeholder="验证码">
                <span class="input-group-prepend">
                  <button id="ButtonCode" class="btn btn-info btn-flat" type="button">
                    获取验证码 </button>
                </span>
              </div>
              <div class="col-sm-12">
              </div>
            </div>
            <div class="form-group row">
              <div class="input-group  input-group-lg">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="fa fa-lock"></i></span>
                </div>
                <input name="reg_password" class="form-control" type="password" id="reg_password"
                  onfocus="ThisOnfocus('reg_password')" maxlength="20" onblur="ThisOnblur('reg_password')"
                  onkeyup="ThisOnkeyup('reg_password')" vdata="0" maxlength="20" placeholder="请输入新密码，至少6位">
              </div>
              <div class="col-sm-12">
                <span class="text-red" id="reg_password_mes"></span>
              </div>
            </div>
            <div class="form-group row">
              <div class="input-group  input-group-lg">
                <div class="input-group-prepend">
                  <span class="input-group-text"><i class="fa fa-lock"></i></span>
                </div>
                <input name="reg_pswqueren" class="form-control" type="password" id="reg_pswqueren" vdata="0"
                  onfocus="ThisOnfocus('reg_pswqueren')" maxlength="20" onblur="ThisOnblur('reg_pswqueren')"
                  onkeyup="ThisOnkeyup('reg_pswqueren')" maxlength="20" placeholder="请再次输入密码">
              </div>
              <div class="col-sm-12">
                <span class="text-red" id="reg_pswqueren_mes"></span>
              </div>
            </div>
            <div class="form-group row">
              <div class="col-md-12">
                <div class="row">
                  <input type="hidden" name="tid" id="tid" value="{$tid}">
                  <input type="hidden" name="safecode" id="safecode" value="{$token}">
                  <input type="hidden" name="smstype" id="smstype" value="3">
                  <input type="hidden" name="regtype" id="regtype" value="1">
                  <input type="hidden" name="posturl" id="posturl" value="{php echo url('member/sendsms/getcode');}">
                  <input type="hidden" name="postEmailUrl" id="postEmailUrl"
                    value="{php echo url('member/sendsms/getEmailCode');}">
                  <button type="button" class="btn btn-primary btn-block btn-flat  btn-lg"
                    style="font-size: 18px; width: 100%;" id="btnRegister" onclick="return findpassword()">
                    找回密码</button>
                </div>
              </div>
            </div>
          </form>
          <div class="text-center mt-20" style="color:#007aff;"> <a href="{php echo url('/register');}"
              class="text-center">注册</a> &nbsp;&nbsp; | &nbsp;&nbsp; <a href="{php echo url('/login');}"
              class="text-center">登录</a></div>
        </div>
        <!-- /.tab-content -->
      </div>
    </div>
    <!-- /.form-box -->
  </div>
  <!-- /.register-box -->
  <!-- jQuery 2.2.3 -->
  <script src="{YUNYECMS_UI}/plugins/jQuery/jquery-3.6.1.min.js"></script>
  <!-- Bootstrap 3.3.6 -->
  <script src="{YUNYECMS_UI}bootstrap/js/bootstrap.min.js"></script>
  <script src="{YUNYECMS_UI}dist/js/admin.js"></script>
  <script src="{YUNYECMS_UI}dist/js/yunyecms_main.js"></script>
  <!-- iCheck -->
  <script src="{YUNYECMS_UI}/plugins/iCheck/icheck.min.js"></script>
  <script src="{YUNYECMS_PUBLIC}member/js/register/findpwd.js?202110" type="text/javascript"></script>
  <link href="{YUNYECMS_PUBLIC}member/css/reg.css" rel="stylesheet" type="text/css" />
  <script>
    $(function () {
      //iCheck for checkbox and radio inputs
      $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
        checkboxClass: 'icheckbox_minimal-blue',
        radioClass: 'iradio_minimal-blue'
      });
      //Red color scheme for iCheck
      $('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({
        checkboxClass: 'icheckbox_minimal-red',
        radioClass: 'iradio_minimal-red'
      });
      //Flat red color scheme for iCheck
      $('input[type="checkbox"].flat-blue, input[type="radio"].flat-blue').iCheck({
        checkboxClass: 'icheckbox_flat-blue',
        radioClass: 'iradio_flat-blue'
      });
    });
  </script>
  <script>
    $(function () {
      var reg_phone;
      var reg_email;
      var regtype = $("#regtype").val();
      var smstype = $("#smstype").val();
      var posturl = $("#posturl").val();
      var postEmailUrl = $("#postEmailUrl").val();
      $("#ButtonCode").click(function () {
        reg_phone = $("#reg_phone").val();
        reg_email = $("#reg_email").val();
        regtype = $("#regtype").val();
        posturl = $("#posturl").val();
        if (regtype == '1') {
          GetCode(reg_phone, smstype, posturl);
        } else if (regtype == '2') {
          GetEmailCode(reg_email, smstype, postEmailUrl);
        }
      });
      var obj_phone = $("#reg_phone_box");
      var obj_email = $("#reg_email_box");
      var obj_yzm = $("#reg_yzm_box");
      obj_email.hide();
      $("#sign_type").children(":first").click(function () {
        obj_phone.show();
        obj_email.hide();
        obj_yzm.show();
        $("#regtype").val(1)
      });
      $("#sign_type").children().eq(1).click(function () {
        obj_phone.hide();
        obj_email.show();
        obj_yzm.show();
        $("#regtype").val(2)
      });
    });
  </script>
  <style>
    * {
      touch-action: none;
    }
  </style>
</body>

</html>